/**
 * 
 */
package dictionary;

import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import java.util.Scanner;

/**
 * @author Student
 * 
 */
public class Dictionary {

	/**
	 * @param args
	 * @throws UnsupportedEncodingException 
	 */

	public static void main(String[] args) throws UnsupportedEncodingException {

		
		Locale bgLocale = new Locale("bg");
		String baseName = "dictionary";
		String key = "word";
		try {
			ResourceBundle rb = ResourceBundle.getBundle(baseName, bgLocale);
			String word = rb.getString(key);
			byte[] byteWord = word.getBytes("UTF8");
			String translatedWord = new String(byteWord, Charset.forName("UTF8"));
			System.out.println(rb.getString(key));
		} catch (MissingResourceException e) {
			e.printStackTrace();
		}
	}
}
